package com.yxinsur.imc.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yxinsur.imc.common.annotation.Excel;
import com.yxinsur.imc.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 手续费对象 imc_recn
 *
 * @author imc
 * @date 2021-05-12
 */
@EqualsAndHashCode(callSuper = false)
@Data
public class ImcRecn extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    @Excel(name = "供应商ID")
    private Long supplierId;

    @Excel(name = "协议ID")
    private String contractIds;

    @Excel(name = "协议科目费用id")
    private String contractExpenseIds;
    /**
     * 结算年月（前端选择的YYYY-MM，默认存YYYY-MM-01）
     */
    @Excel(name = "结算年月")
    private String settleMonth;

    @Excel(name = "结算状态")
    private String recnStatus;

    @Excel(name = "总保费")
    private BigDecimal totalPrem;

    @Excel(name = "总基础手续费")
    private BigDecimal totalFee;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "投保截止日期(不含该天)", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applyEndDate;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "承保截止日期(不含该天)", width = 30, dateFormat = "yyyy-MM-dd")
    private Date insureEndDate;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "回执截止日期(不含该天)", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ackEndDate;

    @Excel(name = "审核通过批注")
    private String approvedComments;

    @Excel(name = "退回批注")
    private String returnComments;

    @Excel(name = "反结[恢复批注]")
    private String revertComments;

    @Excel(name = "供应商上传原始文件")
    private String supplierFileUrl;

    @Excel(name = "删除标记")
    private String isDeleted;

    @Excel(name = "创建人id")
    private String createId;

    @Excel(name = "修改人id")
    private String updateId;

    @Excel(name = "备注")
    private String remark;

    /**
     * 租户id,一个租户id唯一对一个机构id（默认机构id为根节点id暨法人机构）
     */
    @Excel(name = "租户id,一个租户id唯一对一个机构id", readConverterExp = "默=认机构id为根节点id暨法人机构")
    private Long tenantId;
}
